<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.idc.dci.title,
  description: seoConfig.idc.dci.description,
  keywords: seoConfig.idc.dci.keywords
})

const advantages = [
  { icon: 'lucide:network', title: '高速互联', description: '专线连接，低延迟高带宽' },
  { icon: 'lucide:shield-check', title: '安全可靠', description: '加密传输，保障数据安全' },
  { icon: 'lucide:zap', title: '灵活组网', description: '支持点对点、星型、网状等拓扑' },
  { icon: 'lucide:gauge', title: '高可用性', description: '多路由冗余，保障业务连续' },
  { icon: 'lucide:trending-up', title: '弹性扩展', description: '按需扩展带宽，灵活调整' },
  { icon: 'lucide:headphones', title: '专业服务', description: '7x24小时技术支持' }
]

const scenarios = [
  { icon: 'lucide:database', title: '数据同步', description: '多中心数据同步、备份、容灾', color: 'from-blue-500 to-cyan-500' },
  { icon: 'lucide:cloud', title: '混合云', description: '公有云私有云互联、资源调度', color: 'from-purple-500 to-pink-500' },
  { icon: 'lucide:shield', title: '灾备中心', description: '异地灾备、业务接管、数据保护', color: 'from-green-500 to-emerald-500' },
  { icon: 'lucide:building-2', title: '跨域互联', description: '分支机构互联、总部数据中心连接', color: 'from-orange-500 to-red-500' },
  { icon: 'lucide:globe', title: '国际互联', description: '跨境数据传输、全球业务部署', color: 'from-indigo-500 to-blue-500' },
  { icon: 'lucide:server', title: '负载均衡', description: '多中心负载分担、流量调度', color: 'from-yellow-500 to-orange-500' }
]
</script>

<template>
  <div class="min-h-screen">
    <ProductHero
      title="DCI服务"
      description="提供数据中心互联服务，实现多个数据中心之间的高速互联，保障业务连续性和数据安全"
    />
    <section class="py-10 md:py-15 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">产品优势</h2>
          <p class="text-lg text-gray-600">高速互联，安全可靠</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(advantage, index) in advantages" :key="index" class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group">
            <div class="w-14 h-14 bg-gradient-to-br from-indigo-500 to-purple-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">{{ advantage.title }}</h3>
            <p class="text-gray-600 leading-relaxed">{{ advantage.description }}</p>
          </div>
        </div>
      </div>
    </section>
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">行业应用场景</h2>
          <p class="text-lg text-gray-600">实现多中心互联，保障业务连续</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(scenario, index) in scenarios" :key="index" class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden">
            <div class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity" :class="scenario.color" />
            <div class="relative">
              <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br" :class="scenario.color">
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">{{ scenario.title }}</h3>
              <p class="text-gray-600 leading-relaxed">{{ scenario.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>
